//
//  JiaQianImageView.m
//  YYPHSpeedJump
//
//  Created by sujiang on 16/1/6.
//  Copyright © 2016年 sujiang. All rights reserved.
//

#import "JiaQianImageView.h"

@implementation JiaQianImageView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self == [super initWithFrame:frame]) {
        self.user_nameLb = [[UILabel alloc] initWithFrame:CGRectMake(5, 2, 56, 12)];
        [self addSubview:self.user_nameLb];
        self.user_nameLb.font = [UIFont systemFontOfSize:12];
        self.user_nameLb.lineBreakMode = NSLineBreakByTruncatingMiddle;
        self.user_nameLb.textAlignment = NSTextAlignmentCenter;
        self.numImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.user_nameLb.right + 3, 1, 15, 15)];
        [self addSubview:self.numImageView];
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.numImageView.right, 0, 70, 16)];
        self.imageView.image = [UIImage imageNamed:@"bq"];
        [self addSubview:self.imageView];
        UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake(9, 0, 12, 16)];
        lable.text = @"￥";
        lable.font = [UIFont systemFontOfSize:11];
        [self.imageView addSubview:lable];
        lable.textColor = [UIColor whiteColor];
        self.priceLb = [[UILabel alloc] initWithFrame:CGRectMake(lable.right, 0, kScreenWidth / 2 - lable.right, 16)];
        self.priceLb.font = [UIFont systemFontOfSize:11];
        self.priceLb.textColor = [UIColor whiteColor];
        [self.imageView addSubview:self.priceLb];
        
        self.statusImage = [[UIImageView alloc] initWithFrame:CGRectMake(self.imageView.right + 3, 0, 16, 16)];
        [self addSubview:self.statusImage];
    }
    
    self.flag = NO;
    
    return self;
}


@end
